import 'package:flutter/material.dart';

class ImageCase extends StatelessWidget {
  const ImageCase({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('imag组件'),
      ),
      body: Center(
          child: Container(
        width: 300,
        height: 300,
        color: Colors.red,
        child: Image.network(
          'https://img1.baidu.com/it/u=3961945638,2263750235&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=800',
          fit: BoxFit.cover,
        ),
      )),
    );
  }
}
